
#include "Model.h"
#include <iostream>

Model::Model(const std::string name)
{
    model = new Model_3DS();
    model->Load(const_cast<char*>(name.c_str()));
}

Model::~Model() {}

void Model::render(float timeElapsed)
{
    model->Draw();
    float modelview[16];
    glGetFloatv(GL_MODELVIEW_MATRIX , modelview);
    for (int i=0;i<16;i++){
        //std::cout<< i<<":" << modelview[i] << std::endl; 
    }   
    pos=Vec3(modelview[12],modelview[13],modelview[14]); 
}

void Model::update(float timeElapsed)
{ 
    std::cout << "Updating a Model " << std::endl;         
}

